package com.synergy.stockflow.production.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "material_requisition_detail")
public class MaterialRequisitionDetail {
    /**
     * 明细ID
     */
    @TableId(value = "detail_id", type = IdType.ASSIGN_ID)
    @Schema(description="明细ID")
    private String detailId;

    /**
     * 领料ID
     */
    @TableField(value = "requisition_id")
    @Schema(description="领料ID")
    private String requisitionId;

    /**
     * 仓库ID
     */
    @TableField(value = "warehouse_id")
    @Schema(description="仓库ID")
    private String warehouseId;

    /**
     * 物料ID
     */
    @TableField(value = "material_id")
    @Schema(description="物料ID")
    private String materialId;

    /**
     * 计划数量
     */
    @TableField(value = "plan_quantity")
    @Schema(description="计划数量")
    private BigDecimal planQuantity;

    /**
     * 库存数量
     */
    @TableField(value = "inventory_quantity")
    @Schema(description="库存数量")
    private BigDecimal inventoryQuantity;

    /**
     * 实发数量
     */
    @TableField(value = "actual_quantity")
    @Schema(description="实发数量")
    private BigDecimal actualQuantity;

    /**
     * 状态(0=待领取,1=已领取)
     */
    @TableField(value = "`status`")
    @Schema(description="状态(0=待领取,1=已领取)")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @Schema(description="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @Schema(description="更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
}